package com.hyhy.hycloud.uaa.service;

import com.hyhy.hycloud.uaa.security.exception.BadAuthVerificationCodeException;

/**
 * Get SMS Verification Code By Mobile Finder
 *
 * @author Xuegui Yuan
 * @date 2018-09-19
 */
public interface SmsVerificationCodeByMobileFinder {

    /**
     * 通过手机号获取登录验证码
     *
     * @param bizCode 业务代码
     * @param mobile  手机号
     * @return 验证码
     * @throws BadAuthVerificationCodeException 验证码不存在异常
     */
    String findSmsVerificationCode(String bizCode, String mobile) throws BadAuthVerificationCodeException;
}
